﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using VanTaiProperty;
namespace VanTaiData
{
    public class clsController_TM_Cookies : clsConnect
    {
        private clsConnect cls = new clsConnect();
        #region[Get-Data]
        public DataTable GetCookies()
        {
            return cls.BindGridData("sp_TMCookies");
        }
        #endregion

        #region[Insert-Delete-Cookies_ID]
        public bool InsertCookies(TMCookies_Property data)
        {
            cls.CreateNewSqlCommand();
            cls.AddParameter("@Cookies_ID", data.Cookies_ID);
            cls.ExecuteNonQuery("sp_sp_TM_Users_TMCookies_Insert");
            return true;
        }
        public bool DeleteCookies()
        {
            cls.Delete_All_DB("sp_TM_Users_TMCookies_Delete");
            return true;
        }
        #endregion
    }
}
